package com.api.shopapi.service.impl;

import com.api.shopapi.entity.OrderLogistics;
import com.api.shopapi.mapper.OrderLogisticsMapper;
import com.api.shopapi.service.OrderLogisticsService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("OrderLogisticsServiceImplOne")
public class OrderLogisticsServiceImpl implements OrderLogisticsService {

    @Autowired
    private OrderLogisticsMapper orderLogisticsMapper;

    @Override
    public int insert(OrderLogistics orderLogistics) {
        return orderLogisticsMapper.insert(orderLogistics);
    }

    @Override
    public int update(OrderLogistics orderLogistics) {
        return orderLogisticsMapper.update(orderLogistics);
    }

    @Override
    public OrderLogistics getByOrderLogisticsCode(String orderLogisticsCode) {
        return orderLogisticsMapper.getByOrderLogisticsCode(orderLogisticsCode);
    }

    @Override
    public OrderLogistics getByOrderBusinessCode(String orderBusinessCode) {
        return orderLogisticsMapper.getByOrderBusinessCode(orderBusinessCode);
    }

}
